package enumeration

// 权限值枚举
const (
	// PermissionNew 新增
	PermissionNew = 1 << 0
	// PermissionEdit 修改
	PermissionEdit = 1 << 1
	// PermissionDelete 删除
	PermissionDelete = 1 << 2
	// PermissionView 查询
	PermissionView = 1 << 3
	// PermissionImport 导入
	PermissionImport = 1 << 4
	// PermissionExport 导出
	PermissionExport = 1 << 5
	// PermissionPrint 打印
	PermissionPrint = 1 << 6
	// PermissionDownload 下载
	PermissionDownload = 1 << 7
	// PermissionBatchDelete 批量删除
	PermissionBatchDelete = 1 << 8
	// PermissionBatchEdit 批量修改
	PermissionBatchEdit = 1 << 9
	// PermissionUpload 上传
	PermissionUpload = 1 << 10
	// PermissionAll 全部
	PermissionAll = PermissionNew | PermissionEdit | PermissionDelete | PermissionView | PermissionImport | PermissionExport | PermissionPrint | PermissionDownload | PermissionBatchDelete | PermissionBatchEdit | PermissionUpload
)

// ProcessingStatus 处理状态枚举
type ProcessingStatus int

// 接口处理返回状态值
const (
	// ProcessingSuccess 处理成功
	ProcessingSuccess ProcessingStatus = 0
	// ProcessingFailed   没有数据或处理失败
	ProcessingFailed ProcessingStatus = 1
	// ProcessingError   处理错误
	ProcessingError ProcessingStatus = 2
)

// DeleteStatus 业务单据逻辑删除状态枚举
type DeleteStatus int

const (
	// Deleted 已删除
	Deleted DeleteStatus = 1
	// NotDeleted 未删除
	NotDeleted DeleteStatus = 0
)
